# -*- coding: utf-8 -*-
N = 5  # 同学的数量
M = 3  # 课程的数量
#stu
# num : string
# name : string
# score[4]: list
student = []
for i in range(N):
    student.append(['', '', []])


def input_stu(stu):
    for i in range(N):
        stu[i][0] = input('input student no:\n')
        stu[i][1] = input('input student name:\n')
        for j in range(M):
            stu[i][2].append(int(input('第%d门课的score:\n' % (j+1))))


def output_stu(stu):
    for i in range(N):
        print('%-6s%-10s' % (stu[i][0], stu[i][1]))
        for j in range(M):
            print('%-8d' % stu[i][2][j])


input_stu(student)
print(student)
output_stu(student)
